<%@ page import="Entity.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Main</title>
</head>
<body>
<%
    User user=(User)session.getAttribute("User");

    if(user==null)
        response.getWriter().write("<script language='javascript'>location.href='login.jsp'</script>");
    else
        response.getWriter().println("欢迎用户"+user.getUsername());
%>
</body>
</html>
